package org.example.design.command.test1;

/**
 * @author huangshen
 * @version 0
 * @description BuyStock
 * @since 2022/2/14 11:26
 */
public class BuyStock implements Order {

    private final Stock stock;

    public BuyStock(Stock stock){
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }

}
